<?php 
/**
 * @copyright  Copyright (c) 2010 Vistec Total IT Limited 
 */

class Vistec_Lightspeed_Model_Config_Attribute_Set
{
    
	protected $_options;

    public function toOptionArray()
    {
        if (!$this->_options) {
            $this->_options = array();
            
            $entityType = Mage::getModel('catalog/product')->getResource()->getEntityType();
        	$collection = Mage::getResourceModel('eav/entity_attribute_set_collection')
            	->setEntityTypeFilter($entityType->getId());

        	$result = array();
        	foreach ($collection as $attributeSet) {       	
            $this->_options[] = array(
                'value'   => $attributeSet->getAttributeSetId(),
                'label'   => $attributeSet->getAttributeSetName()
            );

        	}
            
        }
        return $this->_options;
    }
}
